import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import index from '../view/index/index.vue'
import search from '../view/search/search.vue'
import shopping from '../view/shopping-cart/shopping.vue'
import friends from '../view/friends/friends.vue'
import shezhi from '../view/friends/shezhi.vue'
import goodsdetails from '../view/goods/goodsdetails.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path:'/index',
      component:index
    },
    {
      path:'/search',
      component:search
    },
    {
      path:'/shopping',
      component:shopping
    },
    {
      path:'/friends',
      component:friends
    },
    {
      path:"/shezhi",
      component:shezhi
    },
    {
      path:"/goodsdetails",
      component:goodsdetails
    }
  ],
})
